package com.example.travelservlet.config;

import com.easemob.im.server.EMProperties;
import com.easemob.im.server.EMService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {
    @Bean
    public EMService service() {

        EMProperties properties = EMProperties.builder()
//                .setBaseUri("https://Your privatized address name")
                .setAppkey("1183230426161532#travelic")
                .setClientId("YXA6Ru5VbhwtSj2eULxEZLeICA")
                .setClientSecret("YXA6pYh68j1y7pjA-DlTP7lITIB0I80")
                .turnOffUserNameValidation()
                .build();
        return new EMService(properties);
    }
}
